#include "behaviour.h"
#include "deleteCustomClasses.h"
#include "WorldData.h"


Behaviour::~Behaviour()
{ 
	DeleteCustomClass::Delete(eventData_intern); 
	eventData_intern = NULL; 
}

bool Behaviour::isAliveActive()
{
	if (worldCreationTime + timeToLive < WorldData::getWorldTimeElapsed())
	{
		return false;
	}

	return true;
}

bool Behaviour::isAliveInactive()
{
	if (worldCreationTime + timeToLiveInactive < WorldData::getWorldTimeElapsed())
	{
		return false;
	}

	return true;
}